package com.tczs.web.util;

import org.apache.log4j.Logger;

import java.io.Closeable;
import java.io.IOException;

public class StreamUtil {
    private static Logger logger = Logger.getLogger(StreamUtil.class);

    public static void close(Closeable closeable){
        if(closeable != null) {
            try {
                closeable.close();
            } catch (IOException e) {
                logger.error("close stream is error", e);
            }
        }
    }
}
